Skip to content

Review and run pages: Copilot-style timeline, status first - #350

Merged
nambok merged 1 commit into
mainfrom
feat/review-page-timeline
Nov 10, 2026
Merged

nambok merged 1 commit into
mainfrom
feat/review-page-timeline

Conversation

@nambok

@nambok nambok commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

The review page and the run page now read like an agent session: status first, then a grouped timeline of what Coderhelm did, then the work itself. The review page shows the review's own session inline (activity, PR overview, reviewed changes) above the comments, and the run page says in one block what is true now, whether it needs a person, what happens next and the one action, over a vertical timeline that ends on where the run is (waiting for checks, PR held, done). It uses the fields from platform #546: session_id, review_sk, checks and pr_review.

Changes

Review detail (/reviewer/detail)

  • The review's session inline when it has one (session_id, or the PR's latest session only when it ran on the same commit and finished as the review was kept): the grouped activity, "PR overview" and "Reviewed changes", then the comments.
  • The summary card lists every finding as one line (severity, title, file:line) that jumps to its card, and says where the PR is now ("The PR now: Merged"), or that a newer review ran, with a link.
  • "What happened after the review" moves up under the summary; the rating is one compact row; "What the reviewer used" moves to the bottom.

Review session (/reviewer/session)

  • A note is a bold heading with its reasoning, and the Search, View, Find and comment rows it led to sit under it, folded to one line each; step text shows inline code instead of backticks.
  • A failed or stalled session reads "Review stopped", offers Review again to those who may, and links back to its review (review_sk).
  • Sentence case: "PR overview", "Reviewed changes".

Run detail (/runs/detail)

  • Status block: a title that says what is true now ("Pull request Infrastructure: a closed fix pull request says who closed it, and the fix is offered again #412 is open; waiting for its checks", "Pull request Settings, System: one update state, derived in one place, that follows the updater #318 is a draft: 2 things to deal with"), "Needs a person" or "Nothing needed from you", a "Next:" line and one primary action. A held PR never says "Finished" (the badge says "PR held"); Retry is secondary there; questions show even when the PR is held. A needs_input wait that isn't a question badges "Waiting on you".
  • The step pills become a vertical timeline in plain words ("Planned the change", "Opened pull request chore: new Google tags for coderhelm.com and app.coderhelm.com #101"), each with its duration and its notes folded behind a count. The running step pulses and is open, the elapsed time ticks, "Still to come" names what is left, and the last entry is where the run is now.
  • Waiting for CI shows the PR's checks the way GitHub's merge box does: a headline, the counts in one sentence, the commit, the failed and running checks first with Required and Details, and the passed ones folded. When checks is null it says Coderhelm is watching them, with no fake list.
  • The reviewer's verdict on the run's own PR, with a link to the review (pr_review). The run's "Review again" button is now "Address PR comments", so "review" means the reviewer.
  • Tasks are ticked only when the plan itself ticks them, never guessed. Files changed sit on the overview with a link to the diff. Time and usage are one quiet line. The Activity tab no longer repeats the step trail.

Types: Review.session_id, ReviewSession.review_sk, RunDetail.checks and RunDetail.pr_review match #546. openapi-fields.ts is regenerated at platform main, and api-contract.ts checks the new types.

Verification

  • Lint, typecheck, check:openapi and build pass.
  • Full e2e suite against the static build: 1489 passed, 10 skipped, 1 failed. The failure (integrations-page, unrelated to this change) passed 24/24 when rerun on its own.
  • New or updated specs:
    • audit-reviewer: the session inline, the fallback through the PR's session, a newer review, a repo the reviewer isn't on, the findings index.
    • reviewer-session: grouped notes, inline code, a failed session, the link back.
    • audit-runs: the timeline steps and notes, checks while waiting (counts, order, Required, Details, folded passes), a failed check first, checks: null, pr_review, live elapsed time, "Still to come".
    • run-draft-hold: the held wording, and questions alongside a hold.
  • Screenshots at desktop and phone width from mocked data, checked for sideways scroll. The dashboard has a single dark theme, so there is no light variant.

Review detail
- Shows the review's own session inline (from session_id, or the PR's
  latest session when it ran on the same commit as the review): the
  grouped activity timeline, the PR overview and the reviewed changes
  table, then the comments.
- Summary card lists every finding as one line that jumps to its card,
  and says where the PR is now, or that a newer review ran.
- "What happened after the review" moves up; the rating is compact.

Review session
- Notes are bold headings with their tool rows (Search, View, Find)
  nested under them; step text renders inline code.
- Failed or stalled reads "Review stopped"; links back to its review
  (review_sk) and offers Review again to those who may.

Run detail
- One status block: what is true now, whether it needs a person, what
  happens next, one primary action. A held PR never says "Finished";
  Retry is secondary; questions show even when the PR is held.
- The step pills become a vertical timeline of the run's steps in
  plain words, with durations, notes folded behind a count, the running
  step pulsing and a live elapsed time, ending on where the run is now.
- Waiting for CI shows the PR's checks (failures first, Required,
  counts, commit) from the new checks field, with a plain fallback.
- Links the reviewer's verdict on the run's PR (pr_review); the run's
  own button is "Address PR comments".
- Tasks are ticked only by the plan itself; files changed on the
  overview with a link to the diff.

Types follow platform #546 (session_id, review_sk, checks, pr_review);
openapi-fields regenerated at platform main and held by api-contract.
@nambok
nambok merged commit a0dfafc into main Nov 10, 2026
10 checks passed
@nambok
nambok deleted the feat/review-page-timeline branch November 10, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant